com.gs.account.entity

SipAccount.Builder

Sip帐号生成器

支持的产品:

All


详情

方法

方法 描述
public SipAccount.Builder setAccountId(int accountId); 设置帐号ID

参数:

accountId
帐号ID 范围:(0-MAX_SIP_ACCOUNT-1) {@link com.gs.account.context.AccountContext.AccountLimit}

支持的产品:

All

public SipAccount.Builder setActivated(boolean activated); 设置帐号的激活状态

参数:

activated
是否激活

支持的产品:

All

public SipAccount.Builder setRegistered(int status); 设置帐号的注册状态

参数:

status
注册状态

支持的产品:

All

public SipAccount.Builder setAccountName(String accountName); 设置帐号名称

参数:

accountName
帐号名

支持的产品:

All

public SipAccount.Builder setAccountNumber(String accountNumber); 设置帐号电话号码

参数:

accountNumber
帐号电话号码

支持的产品:

All

public SipAccount.Builder setGroupId(int groupId); 设置帐号组ID

参数:

groupId
帐号组ID

支持的产品:

All

public SipAccount.Builder setSipServer(String sipServer); 设置帐号要注册的服务器地址

参数:

sipServer
SIP服务器的IP地址或URL,由VoIP服务提供商提供。

支持的产品:

All

public SipAccount.Builder setSipUserId(String sipUserId); 设置帐号用户ID

参数:

sipUserId
用户帐号ID,由VoIP服务提供商提供,通常与电话号码形式相似或者就是实际的电话号码。

支持的产品:

All

public SipAccount.Builder setSipAuthId(String sipAuthId); 设置访问sip服务器的认证ID

参数:

sipAuthId
SIP服务器电话用户用于验证的验证ID。可以与用户ID相同或不同。

支持的产品:

All

public SipAccount.Builder setSipAuthPwd(String sipAuthPwd); 设置访问sip服务器的认证密码

参数:

sipAuthPwd
SIP服务器电话用户用于验证的验证ID。可以与用户ID相同或不同。

支持的产品:

All

public SipAccount.Builder setSipDisplayName(String sipDisplayName); 设置帐号的显示名用于显示主叫方

参数:

sipDisplayName
SIP服务电话用户用于在被叫方显示主叫ID的名字。

支持的产品:

All

public SipAccount build(); 根据Builder设置的值创建一个新的SIP帐号对象

返回值:

SipAccount 新的SIP帐号对象

支持的产品:

All


成员和常量

成员 描述